package com.swh.cloud.config.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 配置管理服务器
 * @author sangwenhao
 * @date 2016年12月20日
 */
//@SpringBootApplication
@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
@EnableConfigServer//激活该应用为配置文件服务器
@Controller
@RequestMapping(value = "/configServer")
public class ConfigServerLaunch {
    
    @ResponseBody
    @RequestMapping(value = "/")
    private String isStart(){
	return "ConfigServerLaunch start Success" ;
    }

    public static void main(String[] args) {
	SpringApplication.run(ConfigServerLaunch.class, args) ;
    }
}
